<?php /* Smarty version Smarty-3.1.11, created on 2013-03-06 00:30:06
         compiled from "F:\my-pri-web\yitiku\www\protected\views\ti_detail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:344651322ef2502529-09697286%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e4645632e8e7e9d18ca0a0fc61d56a05e58d23ca' => 
    array (
      0 => 'F:\\my-pri-web\\yitiku\\www\\protected\\views\\ti_detail.tpl',
      1 => 1362501003,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '344651322ef2502529-09697286',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_51322ef2606ff7_06017235',
  'variables' => 
  array (
    'ti' => 0,
    'replys' => 0,
    'v' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51322ef2606ff7_06017235')) {function content_51322ef2606ff7_06017235($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_truncate')) include 'F:\\my-pri-web\\yitiku\\www\\protected\\framework\\smarty\\plugins\\modifier.truncate.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['ti']->value['ti'],50,'...');?>
-一题库</title>
<meta name="keywords" content="<?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['ti']->value['ti'],30,'');?>
,解答,答案,IT笔试题目,IT面试题目"/>
<meta name="description" content="<?php echo smarty_modifier_truncate($_smarty_tpl->tpl_vars['ti']->value['ti'],50,'...');?>
分析,讨论"/>
<link href="/static/bst/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/static/kd/kindeditor-min.js"></script>

</head>

<body>
<?php echo $_smarty_tpl->getSubTemplate ("wiget/navbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<div id='left'>
</div>
<div id='content'>
	<div class="well">
	  <div><?php echo $_smarty_tpl->tpl_vars['ti']->value['ti'];?>
</div>
	</div>

	<label class="label">问题答案和相关讨论:</label>
  <div class="well">
	<form class="form-horizontal"  accept-charset="utf-8" autocomplete="on"  method="post" action="/post/re_ti">
	  <div class="control-group">
		<label class="label">讨论:</label>
       <div class="controls">
		<textarea name="re_content" class="editor span8" rows="4" placeholder="讨论此题目"></textarea>
        <button type="submit" name="op" value="vol" class="btn btn-primary">提交</button>
       </div>
	  </div>
	  <div class="hide"><input name="ti_id" value="<?php echo $_smarty_tpl->tpl_vars['ti']->value['id'];?>
" /></div>
	</form>
	
	<div>
	  <ul>
	    <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['replys']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
	    <li><?php echo $_smarty_tpl->tpl_vars['v']->value['content'];?>

	    </li>
	    <?php } ?>
	  </ul>
	</div>
	<div class="pagination pagination-centered">
		<ul>
		<?php echo __template_page2(array('page'=>$_smarty_tpl->tpl_vars['page']->value,'r'=>'ti/detail','id'=>$_smarty_tpl->tpl_vars['ti']->value['id']),$_smarty_tpl);?>

		</ul>
	</div>
  </div>

</div>
<div class="">
</div>

<script>
        var editor;
        KindEditor.ready(function(K) {
                editor = K.create('.editor',{items : ['bold', 'italic', 'underline', 'strikethrough', 'removeformat', '|', 'justifyleft', 'justifycenter', 'formatblock', 'insertorderedlist', 'insertunorderedlist', '|','subscript','superscript', 'about','clearhtml', 'code', '|','link', 'unlink', 'emoticons', 'shcode', 'image', 'table', 'quote', '|', 'source', 'fullscreen']});
                editor_en = K.create('#content_en',{items : ['bold', 'italic', 'underline', 'strikethrough', 'removeformat', '|', 'justifyleft', 'justifycenter', 'formatblock', 'insertorderedlist', 'insertunorderedlist', '|','subscript','superscript', 'about','clearhtml', 'code', '|','link', 'unlink', 'emoticons', 'shcode', 'image', 'table', 'quote', '|', 'source', 'fullscreen']});
        });
</script>

<?php echo $_smarty_tpl->getSubTemplate ("wiget/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>